<?php require('header.php'); ?>


<h2><?= $name ?></h2>
<table>
	<tr>
		<th>#</th>
		<th><a href="?id=<?= $id ?>&amp;sort=artist">Dziesma</a></th>
		<th><a href="?id=<?= $id ?>&amp;sort=atsk_cnt">Atskaņojumi</a></th>
		<th><a href="?id=<?= $id ?>&amp;sort=last_atsk">Pēdējoreiz atskaņots</a></th>
	</tr>
	<?php $i = 0; foreach($songs as $song): $i++; ?>
	<tr>
		<td class="number"><?= $i ?>.</td>
		<td><?= dz_link($song) ?></td>
		<td class="number"><?= $song['total'] ?></td>
		<td class="date"><?= strftime('%d.%m.%Y %H:%M:%S',$song['last']) ?> (<?= sprintf(day_literal($song['daycnt']), $song['daycnt']) ?>)</td>
	</tr>
	<?php endforeach; ?>
</table>
<br />

<?php require('footer.php'); ?>
